import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as icons from '@element-plus/icons-vue'


const app = createApp(App);
app.use(router);
app.use(store);
app.use(ElementPlus)
Object.keys(icons).forEach(Key => {
	app.component(Key, icons[Key])
})
//app.use(router)这个必须在mount('#app')前面，不然会导致可能无法渲染
app.mount('#app');